// hooks.ts
import { useDispatch } from 'react-redux'
import type { AppDispatch } from '@/store'

// 使用自定义的 AppDispatch 类型
export const useAppDispatch = () => useDispatch<AppDispatch>()
